<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>meter 刻度尺 新元素</title>
</head>
<body>
我的工资
<!--最小值，最大值，合理的上限值，最优值-->
<meter id="m3" min="0" max="100000"
       low="20000" high="90000" optimum="99999" value="0"></meter>
</body>
<script>
    //
    let val = 0;
    let m3 = document.getElementById("m3");

    let timer = setInterval(function () {
        val = m3.value;
        val += 10000;
        m3.value = val;
        if (val > 100000) {
            clearInterval(timer);
            alert("退出成功");
        }
    }, 1000)

</script>
</html>